When a user fills out the form above and clicks the submit button, the form data is sent for processing to a PHP file named "welcome.php". The form data is sent with the HTTP POST method.
When a user clicks the submit button, the form data is sent to the PHP file specified in the action attribute of the <form> tag. In the PHP file we can use the $_POST variable to collect the value of the input field.
In PHP, the $_POST variable is used to collect values from HTML forms using method post. Information sent from a form with the POST method is invisible and has no limits on the amount of information to send.